package com.fortune.dao;

import com.fortune.entity.MRoleAcl;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MRoleAclMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MRoleAcl record);

    int insertSelective(MRoleAcl record);

    MRoleAcl selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MRoleAcl record);

    int updateByPrimaryKey(MRoleAcl record);

    List<Integer> getAclIdListByRoleIdList(@Param("roleIdList") List<String> roleIdList);

    void deleteByRoleId(@Param("roleId") String roleId);

    void batchInsert(@Param("roleAclList") List<MRoleAcl> roleAclList);

    List<String> getRoleIdListByAclId(@Param("aclId") int aclId);
}